package com.beamfield.dao.device;

import com.beamfield.model.DeviceChange;
import com.beamfield.modelVo.DeviceChangeVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface DeviceChangeMapper {
    int deleteByPrimaryKey(Long id);

    int insert(DeviceChange record);

    int insertSelective(DeviceChange record);

    DeviceChange selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(DeviceChange record);

    int updateByPrimaryKey(DeviceChange record);

    List<DeviceChangeVo> listDeviceChange(@Param("deviceName") String deviceName, @Param("offset") Integer offset,
                                          @Param("limit") Integer limit, @Param("beamId") Long beamId);

    int countListDeviceChange(@Param("deviceName") String deviceName, @Param("beamId") Long beamId);
}